import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SNewBattleFieldMyResult
    
    export  class SNewBattleFieldMyResult extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SNewBattleFieldMyResult();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.honour);
            arg1.writeInt(this.fightHonour);
            arg1.writeInt(this.killTower);
            arg1.writeInt(this.towerHonour);
            arg1.writeInt(this.leftTower);
            arg1.writeInt(this.protectTowerHonour);
            arg1.writeBool(this.win);
            arg1.writeInt(this.winHonour);
            arg1.writeInt(this.rank);
            arg1.writeInt(this.rewardItem);
            arg1.writeInt(this.inspireHonour);
            arg1.writeInt(this.vipHonour);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.honour = arg1.readInt();
            this.fightHonour = arg1.readInt();
            this.killTower = arg1.readInt();
            this.towerHonour = arg1.readInt();
            this.leftTower = arg1.readInt();
            this.protectTowerHonour = arg1.readInt();
            this.win = arg1.readBool();
            this.winHonour = arg1.readInt();
            this.rank = arg1.readInt();
            this.rewardItem = arg1.readInt();
            this.inspireHonour = arg1.readInt();
            this.vipHonour = arg1.readInt();
            return;
        }

        public /* const */_type: int=256;

        public /* var */honour: int;

        public /* var */fightHonour: int;

        public /* var */killTower: int;

        public /* var */towerHonour: int;

        public /* var */leftTower: int;

        public /* var */protectTowerHonour: int;

        public /* var */win: Boolean;

        public /* var */winHonour: int;

        public /* var */rank: int;

        public /* var */rewardItem: int;

        public /* var */inspireHonour: int;

        public /* var */vipHonour: int;

        public static /* var */_regist: SNewBattleFieldMyResult;
    }

            SNewBattleFieldMyResult._regist = new SNewBattleFieldMyResult(true);
        